/*
 * 作者：姚俊
 * 功能：删除一个学科建设平台
 * 日期：2015-05-30
 */
package admin.action.InnPlatform;

import admin.bean.Platform;
import admin.service.subject.PlatformService;

public class DelPlatformAction {
	
	private Platform platform;
	private String deleted;

	public Platform getPlatform() {
		return platform;
	}

	public void setPlatform(Platform platform) {
		this.platform = platform;
	}
	
	public String getDeleted() {
		return deleted;
	}

	public void setDeleted(String deleted) {
		this.deleted = deleted;
	}

	public String execute()
	{
		this.setDeleted("err");
		new PlatformService().deletePlatform(this.getPlatform());
		this.setDeleted("succ");
		return "succ";
	}

}
